package com.hdu.kdk_feign.executor;

import com.hdu.kdk_feign.paramHandler.Param;
import lombok.val;

import java.util.List;

public interface Executor {

    Object execute();

    default void refreshParam(Object[] args) {
        for (int i = 0; i < getParamList().size(); i++) {
            val param = getParamList().get(i);
            param.setParamValue(args[i]);
        }
    }

    List<Param> getParamList();
}
